package com.A21.GuoSai.demo.service_entity.entity.atom;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class DynamicVarPojo extends VarPojo {
    private String d_name;

    public DynamicVarPojo(VarPojo pojo){
        setTypeClass(pojo.getTypeClass());
        this.atomId=pojo.atomId;
        this.methodInfo=pojo.methodInfo;
        this.isLastConnect=pojo.isLastConnect;
        this.isPreConnect=pojo.isPreConnect;
        this.varDesc=pojo.varDesc;
    }


    @Override
    public String toString() {
        return "DynamicVarPojo{" +
                "d_name='" + d_name + '\'' +
                ", atomId=" + atomId +
                ", type=" + typeClass.getName() +
                '}';
    }
}
